#ifndef DBC_H
#define DBC_H

#include <QtCore>
#include <QtSql>
#include <cstring>

class DBConnect {
  //Vars
  private:
    QSqlDatabase db;
  public:
    QString dbms;
    QSqlQuery *query;
    bool status;

  //Methods
  public:
    DBConnect(QString dbms, QString db_name, QString db_host, QString db_username, QString db_password);
    ~DBConnect();
    bool isOpen();
    void execQuery(QString str); 
    void closeConnection();
};

#endif
